﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Drawing;
using System.Windows.Forms;
using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.Logic.POI;

namespace HarmoniousVigor
{
    public partial class Mage
    {
        public bool fireCombat()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (firePVPCombat())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (fireDungeonCombat())
                    return true;
            }
            else
            {
                if (fireQuestingCombat())
                    return true;
            }

            return false;
        }
        public bool fireHeal()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (firePVPHeal())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (fireDungeonHeal())
                    return true;
            }
            else
            {
                if (fireQuestingHeal())
                    return true;
            }

            return false;
        }
        public bool fireBuff()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (firePVPBuff())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (fireDungeonBuff())
                    return true;
            }
            else
            {
                if (fireQuestingBuff())
                    return true;
            }

            return false;
        }
        public bool firePullSpell()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (firePVPPullSpell())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (fireDungeonPullSpell())
                    return true;
            }
            else
            {
                if (fireQuestingPullSpell())
                    return true;
            }

            return false;
        }
    }
}
